Method and system for inhibiting audio-video synchronization delay

ABSTRACT

A method for urging the start of viewing an interleaved audio video stream is disclosed. The method includes repositioning audio and video access units in the interleaved audio video stream. A computer program product and a data processing system are also disclosed.

BACKGROUND OF THE INVENTION

The present invention relates to digital television. More particularly the present invention relates to method and system for inhibiting audio-video synchronization delay, for fast initiation of display of interleaved video and audio by a decoder, suitable, for example, for fast channel switching between channels broadcasting interleaved video and audio data.

Television (TV) viewers often switch between broadcast channels (sometimes this action is named “zapping”). In past days of analogue TV the response to a switching command (input directly or using a handheld remote control) was practically immediate.

Digital Television (DTV) technology has introduced new benefits and challenges, but channel switching involves delays.

Broadcast channel switching in the DTV realm is implemented, for example, in Internet Protocol (IP) networks using a multicast Internet Group Management Protocol (IGMP) and by Switch Digital Broadcast (SDB) in Hybrid Fiber Coax (HFC) networks. The switched broadcast concept, both in IP and HFC networks, introduces a delay in reception of the newly switched channel as data is forwarded to the receiver.

DTV is closely associated with compression of video. In some compressed video formats, such as for example, in the MPEG format, a Video Elementary Stream (VES) is subjected to GOP (Group Of Pictures) encoding. To deal with temporal redundancy, MPEG divides the frames into groups, each referred to as a “group of pictures,” or GOP. A VES is made up of I, P and B type pictures. An I picture (I stands for Intracoded picture) contains information of a whole new frame and is used as reference in the reconstruction of either P or B pictures, whereas a P (P stands for Predicted picture) picture contains information on several consecutive intermediate frames sharing information from the I picture. A P picture supports forward prediction from a previous picture. A B picture (B stands for Bi-directional prediction picture) contains only information of a single intermediate frame. A B picture is a forward, backward or bi-directional picture, referring to other I and P pictures.

Due to the abovementioned video compression characteristics start of playback is possible only at specific points along the compressed video stream, when an intra-coded picture (I picture) is received, otherwise motion estimation dependent information will be lost, causing artifact macro blocks to appear on the screen.

The GOP structure that only allows starting playback at the beginning of a GOP introduces a delay in a channel change operation (so-called “zapping”) due to the fact that the decoder has to wait for the beginning of a GOP to be received before it can start playback. The average delay is half the GOP size, which typically spans a few seconds. The better the compression is the longer the GOP size, introducing greater channel change delays.

In addition to the delay caused by the GOP structure, there is an additional delay introduced in the multiplexing process. The multiplexer typically generates an interleaved video and audio stream, with synchronized video and audio. The multiplexer refers to the atomic component consisting of video picture and audio signal as Access Unit (AU), a different name may be used to describe an atomic component with reference to different video-audio formats. For brevity the term “access unit” is used in the present application to refer to any such atomic component.

The multiplexing process takes into account the fact that compressed video picture size varies, thus the multiplexer generates a video buffer to cope with picture size variations. On the other hand audio may be characterized by a constant bitrate and does not require a large buffer compared to video. As a result, audio AUs in the interleaved video and audio data are delayed until the video buffer is full enough. When the de-multiplexer at the end-user playback device starts de-multiplexing the interleaved stream, it must wait until the audio information corresponding to the already-received video pictures arrives, and only then the matched video and audio data can be forwarded to the video and audio decoders. The described process introduces addition delay called Audio/Video synchronization delay (or A/V synch delay for short) delay. The A/V synch delay may reach a few seconds.

A known approach to solving the A/V synch delay is based on full transcoding of the entire stream. This approach tries to reduce picture size variation attributed to encoding so as to reduce the required video buffer, and by that reducing the delay between the corresponding video and audio data.

Another approach to solve the A/V synch delay is based on playing the video in slow motion to allow the audio information to catch up with the video information, until audio and video are synchronized. This method enables the video buffer to be filled while video is immediately shown on screen in slow motion.

BRIEF DESCRIPTION OF THE INVENTION

There is thus provided, according to embodiments of the present invention, a method for urging the start of display of an interleaved audio-video data. The method includes repositioning audio or video access units in the interleaved audio video data prior to providing the interleaved audio-video data to a decoder.

Furthermore, in accordance with embodiments of the present invention, the method includes repositioning audio access units closer to video access units that correlate in time to the repositioned audio access units.

Furthermore, in accordance with embodiments of the present invention, the method includes repositioning video access units closer to audio access units that correlate in time to the repositioned video access units.

Furthermore, in accordance with embodiments of the present invention, the method further includes providing interleaved audio-video data to a decoder at a rate which is faster than a nominal rate of the interleaved audio-video data.

Furthermore, in accordance with embodiments of the present invention, the method includes discarding audio access units or video access units from the interleaved audio-video data, by performing an action selected from the group of actions consisting of: rewriting over, silencing and removing.

Furthermore, in accordance with embodiments of the present invention, the method is used for switching between a first channel and a second channel of a multicast service of which the second channel transmits the interleaved audio video data. The method includes transmitting the repositioned interleaved audio video stream of the second channel in a unicast mode for a determined period of time before reconnecting to the multicast service.

Furthermore, in accordance with embodiments of the present invention, the method includes accelerating the interleaved audio video stream of the second channel in a unicast mode until the accelerated stream catches up with the second channel of the multicast service.

Furthermore, in accordance with embodiments of the present invention, there is provided a computer program product stored on a non-transitory tangible computer readable storage medium for urging the start of viewing an interleaved audio video stream. The computer product includes computer useable program code for repositioning audio and video access units in the interleaved audio video stream.

Furthermore, in accordance with embodiments of the present invention, there is provided a data processing system. The system includes: a processor; a computer usable medium connected to processor, wherein the computer usable medium contains a set of instructions for urging the start of viewing an interleaved audio video stream, wherein the processor is adapted to carry out a set of instructions to reposition audio and video access units in the interleaved audio video stream.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanied drawings in which:

FIG. 1 is a diagram illustrating switching viewing between two channels of a multicast transmission, according to embodiments of the present invention.

FIG. 2 illustrates a method for switching between two multicast channels, according to embodiments of the present invention.

FIG. 3 depicts the structure of a typical interleaved audio and video stream (prior art);

FIG. 4 depicts re-arranging of audio and video packets in an interleaved audio and video stream as applied by a re-multiplexing algorithm, in accordance with embodiments of the present invention;

FIG. 5 shows the stream after re-multiplexing, according to embodiments of the present invention;

FIG. 6 illustrates a computing device for switching between two multicast channels, according to embodiments of the present invention;

FIG. 7 illustrates a scheme of a channel change server, according to embodiments of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.

Unless specifically stated otherwise, as apparent from the following discussions, it is appreciated that throughout the specification discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining,” or the like, refer to the action and/or processes of a computer or computing system, or similar electronic computing device, that manipulate and/or transform data represented as physical, such as electronic, quantities within the computing system's registers and/or memories into other data similarly represented as physical quantities within the computing system's memories, registers or other such information storage, transmission or display devices.

Embodiments of the present invention may include apparatus for performing the operation herein. This apparatus may be specially constructed for the desired purposes, or it may comprise a general-purpose computer device selectively activated or reconfigured by a computer program stored in the device. Such a computer program may be stored in a computer non-transitory tangible computer readable storage medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, magnetic-optical disks, read-only memories (ROM's), compact disc read-only memories (CD-ROM's), random access memories (RAM's), electrically programmable read-only memories (EPROM's), electrically erasable and programmable read only memories (EEPROM's), FLASH memory, magnetic or optical cards, or any other type of media suitable for storing electronic instructions and capable of being coupled to a computer system bus.

Various general-purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the desired method. The desired structure for a variety of these systems will appear from the description below. In addition, embodiments of the present invention are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of embodiments of the invention as described herein.

It should be appreciated that according to some embodiments of the present invention, the method described below, may be implemented in machine-executable instructions. These instructions may be used to cause a general-purpose or special-purpose processor that is programmed with the instructions to perform the operations described. Alternatively, the operations may be performed by specific hardware that may contain hardwired logic for performing the operations, or by any combination of programmed computer components and custom hardware components.

The method may be provided as a computer program product that may include a machine-readable medium having stored thereon instructions that may be used to program a computer (or other electronic devices) to perform the method. For the purposes of this specification, the terms “computer readable media” may include any medium that is capable of storing or encoding a sequence of instructions for execution by the computer and that cause the computer to perform any one of the methodologies of the present invention. The term “computer-readable media” may accordingly include, but not limited to, solid-state memories, optical and magnetic disks, and a carrier wave that encodes a data signal.

Although the scope of the present invention is not limited in this respect, the system and method disclosed herein may be implemented in many wireless, handheld and portable communication devices. By way of example, wireless, handheld and portable communication devices may include wireless and cellular telephones, smart telephones, personal digital assistants (PDAs), web-tablets and any device that may provide wireless access to a network such, an intranet or the internet. It should be understood that the present invention may be used in a variety of applications.

The term “interleaved audio video stream” is understood, in the context of the present specification, to mean a data stream that includes both video and audio access units, unless specifically stated otherwise.

According to embodiments of the present invention it is suggested to address the A/V sync delay by providing the interleaved video and audio in a unicast mode with brief re-multiplexing at the beginning of the interleaved video and audio data. In addition, the compressed interleaved audio video data at a channel switching server may be accelerated for a short period of unicast transmission in the beginning of the stream. By “accelerating” is meant providing interleaved audio-video data to the decoder at a rate which is faster than the nominal rate of the interleaved audio-video data.

The re-multiplexing process repositions audio and video access units. According to embodiments of the present invention, the repositioning of the audio and video AUs includes repositioning of audio AUs closer to one or more video AUs in the beginning of the unicast stream, thus eliminating or at least greatly reducing the time needed for the decoder to get the audio AUs, so as to facilitate immediate or nearly immediate rendering. As a result of re-multiplexing at the beginning of the interleaved stream audio AUs are available immediately or nearly immediately next to the first video AU, thus the A/V synch delay is eliminated.

In other embodiments of the present invention video AUs may be repositioned (although in accordance with present interleaved audio-video data formats it is more likely that audio AUs be repositioned).

Since the re-multiplexing process is applied only to the beginning of the stream at a channel change server, additional equipment may not be required.

As opposed to the full transcoding solution, according to embodiments of the present invention the broadcasted data is not broadcasted through the channel change server, but rather only an initial unicast phase is transmitted from the channel change server, and then normal broadcast process continues. This approach provides higher availability of the system and the broadcast is not substantially affected by the channel change equipment.

As re-multiplexing is a process which does not use heavy processing resources, no, or negligible, performance penalty is involved.

According to embodiments of the present invention no video artifacts are present, such as slow motion, which may cause leaps and synchronization problems.

According to embodiments of the present invention, when a viewer of a multicast service switches from a first channel to a second channel, a period of accelerated unicast transmission is applied in the beginning of the stream of the second channel. A short re-multiplexing of the beginning of the accelerated unicast interleaved stream is applied. The re-multiplexing process re-positions some audio AUs earlier in the stream, for example right after the first video packet. The re-multiplexing process re-positions the audio AU corresponding to the first video AU right after the first video AU. Any audio AU that exist in the stream earlier then the first corresponding audio AU are either re-written with the re-positioned audio AU or silenced by change of the Packet Identifier (PID) to NULL PID. The re-positioning process does not add any new data to the stream, just relocated data segments within the stream. The re-positioning of the audio AU is done without changing their timing information. Audio AU are re-positioned earlier in the stream such that the acceleration compensates for the earlier re-positioning in terms of audio AU arrival rate while maintaining AU original arrival rate as in the original un accelerated multiplexed stream.

As a result of the re-multiplexing according to embodiments of the present invention, video AU may be forwarded to the video decoder buffer in an accelerated rate, which may require a larger video decoder buffer then originally defined by the multiplexer.

Reference is now made to the accompanying figures.

FIG. 1 is a diagram illustrating switching viewing between two channels of a multicast transmission, according to embodiments of the present invention. The multicast transmission includes two channels 12, 14 (arrow 10 indicating the direction of advance of time). A viewer initially watches channel 12 and at a certain point in time 16 activates a channel switch command (e.g. zaps channels using a remote control or using operation keys of his STB).

Currently, due to the imposed delays the play of channel 14 will commence on the viewers machine only at time 18, due to the inherent delay (A/V sync delay and GOP delay), so that portion 15 of the transmission of channel 14, which was transmitted after the channel switch command, will not be presented to the viewer to watch.

According to embodiment of the present invention it is suggested to address the A/V sync delay by providing to the viewer's de-multiplexer an accelerated unicast transmission of the a beginning portion of the video stream of the second channel (channel 14), which was already transmitted in the multichast after the switch command, while repositioning of audio Aus closer to the beginning of the accelerated unicast stream, until audio re-positioning is not required any more, as the calculated new audio AU position matches the original position. The re-positioning is calculated to end till the unicast transmission is finished. At this stage normal multicast reception of the second channel to the viewer's de-multiplexer is continued.

FIG. 2 illustrates a method for switching between two multicast channels, according to embodiments of the present invention.

The method starts when a switch command to switch from a first to a second channel, of a multicast service, is received 22 at a channel switch server (a channel switch server may be realized in software, hardware of a combination of both). In response the channel switch server Accelerate in unicast video stream of 2^(nd) channel 22, while repositioning audio access units corresponding to first video access units of the accelerated stream closer to the beginning of the stream 24. In this process audio access units which correspond to video access units that were transmitted earlier than the beginning of the accelerated stream are discarded 26. When the accelerated stream catches up with the multicast second channel video stream multicast reception is reestablished (reverted to) 28.

FIG. 3 (PRIOR ART) shows a packetized interleaved stream before the application of the audio Aus re-positioning according to embodiments of the present invention. Each block represent video packet by V_(i), and audio packet by A_(i) (i being an integer, representing the position of that packet in the stream, or, in other words, the timing of that packet in the sequence).

FIG. 4 shows the re-positioning operations applied to audio packets in the accelerated multicast stream, according to embodiments of the present invention. In the example shown in this figure audio packet A₃ is repositioned to replace audio packet A₁, audio packet A₄ is repositioned to replace audio packet A₂ and audio packet A₅ is repositioned to replace audio packet A₄.

FIG. 5 shows the stream after re-multiplexing, according to embodiments of the present invention. As seen from FIG. 5, after re-multiplexing, the corresponding video and audio packets V₁ and A₁ are located in close proximity, and the de-multiplexer can forward both V₁ and A₁ to the decoder, to start decoding and rendering to video and audio streams. Note that some audio packets have changed their location (repositioned closer to the beginning of the stream, while others have been removed (crossed cells, in the old positions of A₃ and A₅) or written over (A₃ over A₁, A₄ over A₂ and A₅ over A₄).

FIG. 6 illustrates a computing device for switching between two multicast channels, according to embodiments of the present invention. The device includes a circuit board 64, memory 62, input/output (I/O) interface 60 and processor 66. A computer executable program which includes instructions to perform method steps according to embodiments of the present invention may be stored on memory 62 and executed by processor 66.

FIG. 7 illustrates a scheme of a multicast design with a channel change server, according to embodiments of the present invention. A multicast transmission (depicted as three channels C1, C2 and C2) is provided to router or Digital Subscriber Line Access Multiplexer (DSLAM) 74. When the end user chooses to switch viewing from one channel to another (e.g. from channel 1 to channel 2) channel switch server 72 performs repositioning of audio and video access units according to embodiments of the present invention and the repositioned interleaved video stream in a unicast mode to the user's set-top-box (STB) 76 for a determined period of time (e.g. until the unicast stream catches up with the second channel of the multicast service, and then multicast mode is resumed.

An algorithm (presented here as a pseudo-code) for re-multiplexing an audio and video stream, according to embodiments of the present invention, may include the following steps:

Set video_buffer_size = original video_buffer_size * (1+ acceleration_factor) Locate first playable video AU (I picture). Set first_i_dts to the first video AU dts. Locate first audio packet that its dts >=first_i_dts. Set future_aud_pkt [audio pid] to this packet (for all audio streams). For each audio_pkt[pid] //audio packet of any audio pid  if (audio_pkt[pid] ==future_aud_pkt[pid] ) { //done re-positioning this pid   if all (audio_pkt[pid] >= future_aud_pkt[pid])               exit loop    else  loop   }  if (audio_buffer_size[pid] < max_audio_buffer_size[pid]) {   replace audio_pkt[pid] with future_aud_pkt[pid]   set future_aud_pkt[pid] to audio packet next after future_aud_pkt[pid]  // add audio packet in (nominal + acceleration_factor) rate  // remove audio packet in nominal rate  audio_buffer_size[pid] +=audio_pkt _size[pid] * acceleration_factor }   else {   set packet as NULL, by changing pid number to NULL pid   } Loop * dts-decoding time stamp

It should be clear that the description of the embodiments and attached Figures set forth in this specification serves only for a better understanding of the invention, without limiting its scope.

It should also be clear that a person skilled in the art, after reading the present specification could make adjustments or amendments to the embodiments described herein that would still be included in the scope of the present invention. 

1. A method for urging the start of display of an interleaved audio-video data comprising repositioning audio or video access units in the interleaved audio video data prior to providing the interleaved audio-video data to a decoder.
 2. A method as claimed in claim 1, comprising repositioning audio access units closer to video access units that correlate in time to the repositioned audio access units.
 3. A method as claimed in claim 1, comprising repositioning video access units closer to audio access units that correlate in time to the repositioned video access units.
 4. A method as claimed in claim 1, further comprising providing interleaved audio-video data to a decoder at a rate which is faster than a nominal rate of the interleaved audio-video data.
 5. A method as claimed in claim 1, comprising discarding audio access units or video access units from the interleaved audio-video data, by performing an action selected from the group of actions consisting of: rewriting over, silencing and removing.
 6. A method as claimed in claim 1, for switching between a first channel and a second channel of a multicast service of which the second channel transmits the interleaved audio video data, the method comprising transmitting the repositioned interleaved audio video stream of the second channel in a unicast mode for a determined period of time before reconnecting to the multicast service.
 7. A method as claimed in claim 6, comprising accelerating the interleaved audio video stream of the second channel in a unicast mode until the accelerated stream catches up with the second channel of the multicast service.
 8. A computer program product stored on a non-transitory tangible computer readable storage medium for urging the start of viewing an interleaved audio video stream, the computer product comprising computer useable program code for repositioning audio and video access units in the interleaved audio video stream.
 9. The computer program product as claimed in claim 8, wherein the repositioning of audio and video access units includes repositioning audio access units closer to a one or more video access units located at a beginning of the stream.
 10. The computer program product as claimed in claim 8, comprising computer usable program code for accelerating the interleaved audio video stream.
 11. The computer program product as claimed in claim 10, comprising computer usable program code for discarding audio access units in the accelerated stream which correspond to video access units that were transmitted earlier than the beginning of the accelerated stream.
 12. The computer program product as claimed in claim 11, wherein the discarding of the access units in the accelerated stream which correspond to video access units that were transmitted earlier than the beginning of the accelerated stream includes an action selected from the group of actions consisting of: rewriting over and silencing.
 13. The computer program product as claimed in claim 8, used for switching between a first channel and a second channel of a multicast service of which the second channel transmits the interleaved audio video stream, the computer program product comprising computer usable program code for transmitting the repositioned interleaved audio video stream of the second channel in a unicast mode for a determined period of time before resuming the multicast service.
 14. The computer program product as claimed in claim 13, comprising computer usable program code for accelerating the interleaved audio video stream of the second channel in a unicast mode until the accelerated stream catches up with the second channel of the multicast service.
 15. A data processing system comprising: a processor; a computer usable medium connected to processor, wherein the computer usable medium contains a set of instructions for urging the start of viewing an interleaved audio video stream, wherein the processor is adapted to carry out a set of instructions to reposition audio and video access units in the interleaved audio video stream.
 16. A data processing system as claimed in claim 15, wherein the repositioning of audio and video access units includes repositioning audio access units closer to a one or more video access units located at a beginning of the stream.
 17. A data processing system as claimed in claim 15, wherein the set of instructions includes instructions to accelerate the interleaved audio video stream.
 18. A data processing system as claimed in claim 17, wherein the set of instructions includes instructions to discard audio access units in the accelerated stream which correspond to video access units that were transmitted earlier than the beginning of the accelerated stream.
 19. A data processing system as claimed in claim 18, wherein the discarding of the access units in the accelerated stream which correspond to video access units that were transmitted earlier than the beginning of the accelerated stream includes an action selected from the group of actions consisting of: rewriting over and silencing.
 20. A data processing system as claimed in claim 17, wherein the set of instructions includes instructions to transmit audio access units of the accelerated stream at a transmission rate that is unchanged with respect to an unaccelerated video stream.
 21. A data processing system as claimed in claim 15, for switching between a first channel and a second channel of a multicast service of which the second channel transmits the interleaved audio video stream, wherein the set of instructions includes instructions to transmit the repositioned interleaved audio video stream of the second channel in a unicast mode for a determined period of time before resuming the multicast service.
 22. A data processing system as claimed in claim 21, wherein the set of instructions includes instructions to accelerate the interleaved audio video stream of the second channel in a unicast mode until the accelerated stream catches up with the second channel of the multicast service. 